<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				code: ''
			}
		},
		onShow() {
			//http://127.0.0.1:8090/pages/personalCenter/personalCenter?userid=2#/
			console.log(document.URL);
			this.code = document.URL.split("?")[1].split("=")[1];
			this.toApp();
			
		},
		methods: {
			toApp(){
				var _this = this;
				uni.request({
					url: common.api_base_url+'/app' ,
					data:{
						"code":  _this.code
					},
					header:{
					},
					method: 'GET',
					success: res => {
					},
					fail: function(e) {
						uni.showToast({
							title:"唉哟，程序错误了["+JSON.stringify(e)+"]",
							icon:"loading"
						}) 
					},
				});
			}
		}
	}
</script>

<style>

</style>
